International Validation

(0 reviews)

Error Handling

Invalid destination_country_code Input

Error occurs when an invalid destination country code is provided. Please ensure a valid 2-letter ISO country code is used.

resources/image-b3dae10e-a45d-49b5-baeb-d60e081c6a63.png

Empty destination_country_code Input

If the destination_country_code is missing or does not meet the required minimum length (2 characters), the API will return a validation error with success: false and an error object indicating the invalid field and the expected requirements.

resources/image-af6104ad-56e7-470d-bdeb-8c0c978c2415.png

Validation Errors for Empty or Stop Word Descriptions

If a description is empty or contains a stop word (e.g., "shoes"), the API will return validation errors indicating that a more specific description is required.

resources/image-02f31743-7846-4a50-bead-e6fa5f57a853.png

Stop word validation is not required for the destination_country_code.

When the destination_country_code does not require stop word validation, the API will return a response indicating that no validation rules are applied. In this case, country_has_validation is false, and all provided descriptions are treated as valid regardless of their content.

resources/image-b0fc097c-b641-468d-a2c0-e4bc6acf07ef.png


Reviews